#import "UIColor+Custom.h"

@implementation UIColor (UIColorForCustom)

+ (UIColor*)colorWithHexInteger:(long)hexInteger alpha:(float)alpha
{
    return [UIColor colorWithRed:((hexInteger >> 16) & 0xFF)/255.0 green:((hexInteger >> 8) & 0xFF)/255.0 blue:((hexInteger) & 0xFF)/255.0 alpha:alpha];
}

+ (UIColor*)colorWithHexString:(NSString*)hexString alpha:(float)alpha
{
    long hex = [hexString intValue];
    return [UIColor colorWithHexInteger:hex alpha:alpha];
}

+ (UIColor*)textNormal          {return [UIColor colorWithHexInteger:0xfee8db alpha:1.0];}

+ (UIColor*)textDisabled        {return [UIColor colorWithHexInteger:0xffffff alpha:0.5];}

+ (UIColor*)textSelected        {return [UIColor colorWithHexInteger:0x0000ff alpha:1.0];}

+ (UIColor*)statusBarBackground {return [UIColor colorWithHexInteger:0x383838 alpha:1.0];}

+ (UIColor*)viewBackground      {return [UIColor colorWithHexInteger:0x272c30 alpha:1.0];}

+ (UIColor*)borderNormal        {return [UIColor colorWithHexInteger:0x595959 alpha:1.0];}

+ (UIColor*)borderSelected      {return [UIColor colorWithHexInteger:0x56B0F4 alpha:1.0];}

+ (UIColor*)pickViewBackground  {return [UIColor colorWithHexInteger:0x5b6064 alpha:1.0];}

@end
